<?php

namespace common\ui\admin\utils;

use yii\web\View;

/**
 *
 */
class LayoutUtils
{
    public static function beginModalLayout(View $view, $id, $title)
    {
        $view->beginContent('@common/ui/backend/views/layouts/modal.php', [
            'id' => $id,
            'title' => $title,
        ]);
    }

    public static function endLayout(View $view)
    {
        $view->endContent();
    }
}